package com.sky.utils;

/**
 * @Author: XJH
 * @Description: TODO
 * @Date: 2025/6/3 10:36
 * @Version: 1.0
 */
public class CurrentHolderUtil  {
    private static final ThreadLocal<Long> CURRENT_LOCAL = new ThreadLocal<>();

    public static void setCurrentId(Long employeeId) {
        CURRENT_LOCAL.set(employeeId);
    }

    public static Long getCurrentId() {
        return CURRENT_LOCAL.get();
    }

    public static void remove() {
        CURRENT_LOCAL.remove();
    }
}